package com.fary.web.context.request.async;

import com.fary.core.SpringException;
import com.fary.web.context.request.NativeWebRequest;

import java.util.concurrent.Callable;

public class TimeoutCallableProcessingInterceptor implements CallableProcessingInterceptor {

	@Override
	public <T> Object handleTimeout(NativeWebRequest request, Callable<T> task) throws Exception {
		return new SpringException(task);
	}

}